package com.itheima.stock.common.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @ClassName StockUpdownDomain
 * @Description TODO
 * @Author Zack
 * @Date 2022/12/8 16:21
 * @Version 1.0
 */
@Data
public class StockUpdownDomain {
    /**
     * 交易量
     */
    @ExcelProperty(value = {"成交数量"}, index = 8)
    private Long tradeAmt;
    /**
     * 前收盘价
     */
    @ExcelProperty(value = {"前收盘价"}, index = 2)
    private BigDecimal preClosePrice;
    /**
     * 振幅
     */
    @ExcelProperty(value = {"振幅"}, index = 6)
    private BigDecimal amplitude;
    /**
     * 股票编码
     */
    @ExcelProperty(value = {"代码"}, index = 0)
    private String code;
    /**
     * 名称
     */
    @ExcelProperty(value = {"名称"}, index = 1)
    private String name;
    /**
     * 日期
     */
    @ExcelProperty(value = {"当前日期"}, index = 9)
    @DateTimeFormat("yyyyMMddHHmm")
    private String curDate;
    /**
     * 交易金额
     */
    @ExcelProperty(value = {"成交金额"}, index = 7)
    private BigDecimal tradeVol;
    /**
     * 涨跌
     */
    @ExcelProperty(value = {"涨跌"}, index = 4)
    private BigDecimal increase;

    /**
     * 涨幅
     */
    @ExcelProperty(value = {"涨幅"}, index = 5)
    private BigDecimal upDown;
    /**
     * 当前价格
     */
    @ExcelProperty(value = {"最新价"}, index = 3)
    private BigDecimal tradePrice;

}
